#ifndef __39B14D1C_1082_45f3_BACC_7311C388FC94__
#define __39B14D1C_1082_45f3_BACC_7311C388FC94__

#include "../tools/head.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{

	class session;
	class udp;
	class tcp;

	class data : public xos_stl::mem_pool_item< data, thread_lock >
    {
    public:
        data();
        ~data();

    public:
		session * m_pSession;
		tcp * m_pTcp;
		udp * m_pUdp;

		xos::i_msg * m_pMsg;
        xos::i_buf * m_pBuf;

		bool m_bSuccess;
		int m_nMsg;

		char m_szIp[256];
		int m_nPort;

    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __39B14D1C_1082_45f3_BACC_7311C388FC94__
